var mongoose = require('mongoose')

var Schema = mongoose.Schema

var articleSchema = new Schema({
    author: { type: 'string', required: true },
    title: { type: 'string', required: true },
    content: { type: 'string', required: true },
    pv: { type: 'number', default: 0 }
})

module.exports = mongoose.model('Article', articleSchema)